Denizen Script Language Explanations


Language Explanations explain components of Denizen in a more direct and technical way than The Beginner's Guide.


Showing 1 out of 81 language explanations...
NameStructure lookups
DescriptionStructures can be located using Tag:LocationTag.find_structure.
It works similarly to the '/locate' command, and has several side effects/edge cases:
- The radius is in chunks, but isn't always a set square radius around the origin; certain structures may modify the amounts of chunks checked. For example, woodland mansions can potentially check up to 20,000 blocks away (or more) regardless of the radius used.
- Lookups can take a long amount of time (several seconds, over 10 in some cases), especially when looking for unexplored structures, which will cause the server to freeze while searching.
- They will not load/generate chunks (but can search not-yet-generated chunks and return a location in them).
- They can lead to situations where the server hangs and crashes when trying to find unexplored structures (if there aren't any/any nearby), as it keeps looking further and further out.
- The returned location only contains the X and Z values, and will always have a Y value of 0. Tags like Tag:LocationTag.highest are available, but note that they require the chunk to be loaded.
GroupUseful Lists
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L4288